<include file="Public:pageHeader"/>
<script type="text/javascript" src="_STATIC_/js/My97DatePicker/WdatePicker.js"></script>
<link rel=" stylesheet" type="text/css" href="_STATIC_/css/member.css" />
<style>
    .table-content{
        vertical-align: middle;
        word-wrap: break-word;
        word-break: break-all;
    }
    .table-content .btn{
        margin-bottom: 5px;
        display: block;
    }
</style>
<!--主区域-->
<div class="mainBox on">
    <div class="my-page">
        <div class="wrapper"">
        <div class="my_p">
            <include file="Member:memberLeft2"/>
            <div class="my_form">
                <p class="m_p1">当前位置：精选商标</p>
                <div class="line"></div>
                <div id="searchBox">
                    <span>
                    名称：<input type="text" id="name" value="{$name}" style="width:100px">
                    </span>
                    <span>
                    编号：<input type="text" id="sn" value="{$sn}" style="width:100px">
                    </span>
                    <span>
                    分类：<select name="cid" id="cid">
                            <option value="">全部</option>
                            <volist name="category" id="vo" key="k">
                                <option value="{$vo.id}" <if condition="( $cid == $vo.id )"> selected="selected" </if> >{$vo.cate_sn}-{$vo.cate_name}</option>
                            </volist>
                        </select>
                    </span>
                    状态：<select name="trademarkStatus" id="trademarkStatus">
                            <option value="">全部</option>
                            <option value="0" <if condition="( $trademarkStatus != '' and $trademarkStatus == 0 )"> selected="selected" </if> >待上架</option>
                            <option value="1" <if condition="( $trademarkStatus != '' and $trademarkStatus == 1 )"> selected="selected" </if> >已上架</option>
                            <option value="2" <if condition="( $trademarkStatus != '' and $trademarkStatus == 2 )"> selected="selected" </if> >已下架</option>
                        </select>
                    </span>
                    <span>
                    置顶：<select name="topStatus" id="topStatus">
                            <option value="">全部</option>
                            <option value="0" <if condition="( $topStatus != '' and $topStatus == 0 )"> selected="selected" </if> >未置顶</option>
                            <option value="1" <if condition="( $topStatus != '' and $topStatus == 1 )"> selected="selected" </if> >已置顶</option>
                        </select>
                    </span>
                    <span>
                        <button class="table-top-btn" id="search-btn">搜索</button>
                    </span>
                </div>
                <table class="table">
                    <tr>
                        <!-- <th class="table-title" style="width:25px"><input type="checkbox" name="checkall"></th> -->
                        <th class="table-title" style="width:80px">编号</th>
                        <th class="table-title" style="width:80px">名称</th>
                        <th class="table-title" style="width:75px">分类</th>
                        <th class="table-title" style="width:40px">排序</th>
                        <th class="table-title" style="width:50px">成本价</th>
                        <th class="table-title" style="width:50px">展示价</th>
                        <th class="table-title" style="width:40px">状态</th>
                        <th class="table-title" style="width:40px">置顶</th>
                        <th class="table-title" style="width:120px">更新时间</th>
                        <th class="table-title" style="width:60px">操作</th>
                    </tr>
                    <tbody>
                    <notempty name="trademarklist">
                        <volist name="trademarklist" id="vo" key="k">
                            <tr <?php if ( ( $k % 2) != 0 ) echo 'style="background: #F7F9FA"'; ?> >
                                <!-- <td class="table-content"><input type="checkbox" value="{$vo.id}" name="trademark"></td> -->
                                <td class="table-content" style="text-align: center">
                                    <img src="{$vo.thumb_image}" style="max-width: 60px">
                                    <br/>
                                    {$vo.sn}
                                </td>
                                <td class="table-content">{$vo.name}</td>
                                <td class="table-content">{$vo.cate}-{$vo.catename}</td>
                                <td class="table-content">{$vo.sort}</td>
                                <td class="table-content">{$vo.origin_price}</td>
                                <td class="table-content">{$vo.price}</td>
                                <td class="table-content">
                                    <eq name="vo.status" value="0">待上架</eq>
                                    <eq name="vo.status" value="1">已上架</eq>
                                    <eq name="vo.status" value="2">已下架</eq>
                                </td>
                                <td class="table-content">
                                    <eq name="vo.top" value="0">未置顶</eq>
                                    <eq name="vo.top" value="1">已置顶</eq>
                                </td>
                                <td class="table-content">{$vo.updated_at}</td>
                                <td class="table-content">
                                    <neq name="vo.status" value="1">
                                        <button class="btn" trademarkid="{$vo.id}">上架</button>
                                    </neq>
                                    <eq name="vo.status" value="1">
                                        <button class="btn" trademarkid="{$vo.id}">下架</button>
                                    </eq>
                                    <eq name="vo.top" value="0">
                                        <button class="btn" trademarkid="{$vo.id}">置顶</button>
                                    </eq>
                                    <eq name="vo.top" value="1">
                                        <button class="btn" trademarkid="{$vo.id}">取消置顶</button>
                                    </eq>
                                    <button class="btn" trademarkid="{$vo.id}">删除</button>
                                </td>
                            </tr>
                        </volist>
                        <else/>
                        <tr><td colspan="10" style="text-align: center; padding-top: 30px; font-size: 14px;">暂无数据</td></tr>
                    </notempty>
                    </tbody>
                </table>
                <div class="page">
                    <?php echo $page;?>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<!--底部区域-->
<include file="Public:pageFooter" />
</body>
</html>
<script type="text/javascript" src="_STATIC_/js/member-best.js?v=<?php echo time(); ?>" ></script>